<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>  
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    
    <title>新增员工</title>
  <link rel="stylesheet" href="css/style.css" type="text/css"/>
  <script type="text/javascript" src="js/addCheck.js"></script>
    <script type="text/javascript" src="js/pos_depart.js"></script>
    	<script type="text/javascript" src="js/jquery-1.6.js"></script>
  <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script></head>
  
  <body>
  	<div class="topTitle">
  		<img src="images/main_28.gif"/>&nbsp;添加员工信息
  	</div><br/>
		<form action="addEmployee" method="post" onsubmit="return checkInfo();">
			<table>
				<tr>
					<td class="td_01" colspan="3">&nbsp;</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">姓名:</td>
					<td class="td_01" width="35%">
					<input class="input" size="30" type="text" id="userName" name="employee.userName" value=" "/>
					<span id="nameError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">密码:</td>
					<td class="td_01" width="35%"><input class="input" size="30" type="password" id="userPassword" name="employee.userPassword" value=""/>
						<span id="passwordError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">性别:</td>
					<td class="td_01" width="35%">
						男<input type="radio" name="employee.userSex" value="男" checked="checked"/>
						女<input type="radio" name="employee.userSex" value="女"/>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">学历:</td>
					<td class="td_01" width="35%">
						<select name="employee.userEducation">
							<option value="高中">高中</option>
							<option value="大学">大学</option>
							<option value="研究生">研究生</option>
							<option value="博士生">博士生</option>
						</select>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
				<td class="td_01" width="20%" style="text-align:right; ">
				部门: 
				</td>
				<td class="td_01" width="35%">
					<select name="departmentId" id="department" onchange="changeDaperment();">
							<option>请选择部门</option>
							<s:iterator value="departments">
								<option value="<s:property value='departmentId'/>">
									<s:property value="departmentName"/>
								</option>
							</s:iterator>
					</select>
					<span id="departmentError" class="error"></span>
				</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">
						职位:
					</td>
					<td class="td_01" width="35%">
						<span id="position">
							<select>
							<option>请选择职位</option>
							</select>
						</span>
							<span id="positionError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">出生日期:</td>
					<td class="td_01" width="35%"><input class="Wdate" type="text" id="birthday" name="employee.userBirthday" onclick="WdatePicker({skin:'ext'})" readonly="readonly"/>
						<span id="birthdayError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">电子邮箱:</td>
					<td class="td_01" width="35%"><input type="text" class="input" size="30" id="userEmail" name="employee.userEmail"/>
						<span id="emailError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">办公电话:</td>
					<td class="td_01" width="35%"><input type="text" class="input" size="30" id="userOfficephone" name="employee.userOfficephone"/>
						<span id="officephoneError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">手机号码:</td>
					<td class="td_01" width="35%"><input type="text" class="input" size="30" id="userPhone" name="employee.userPhone"/>
						<span id="phoneError" class="error"></span>
					</td>
				</tr>
				<tr>
				 <td class="td_01" width="8%" ></td>
					<td class="td_01" width="20%" style="text-align:right; ">家庭住址:</td>
					<td class="td_01" width="35%"><input type="text" class="input" size="30" id="userAddress" name="employee.userAddress"/>
						<span id="addressError" class="error"></span>
					</td>
				</tr>
				<tr>
					<td class="td_01" colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3" class="td_page">
						<div align="center">
				            <input name="Submit" type="submit" class="buttonface02" value="  添加员工  "/>
							&nbsp;&nbsp;
				      	  	<input name="Submit" type="reset" class="buttonface02" value="  重 置  "/>
						</div>
					</td>
				</tr>
			</table>
		</form>
  </body>
</html>
